package com.ysx.oa.delay.controller;


import com.ysx.oa.delay.bean.DelayBean;
import com.ysx.oa.delay.service.DelayService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/delay")
public class DelayController {

    @Autowired
    private DelayService service;

    @RequestMapping(value = "/add.do" ,method = RequestMethod.POST)
    @ResponseBody
    public Map<String,Object> add( @RequestBody DelayBean bean){
        Map<String,Object> map = new HashMap<>();

        service.add(bean);
        return map;

    }

}
